package au.chao.message;

import org.springframework.core.style.ToStringCreator;


public class TextMessageContent implements MessageContent {
	private static final long serialVersionUID = 1L;

	String content = "";

	public TextMessageContent() {

	}

	public TextMessageContent(String str) {
		content = str;
	}

	@Override
	public Object getContent() {
		return content;
	}

	@Override
	public void setContent(Object content) {
		this.content = content.toString();
	}

	public String toString() {
		return new ToStringCreator(this).append("content", content).toString();
	}
}
